﻿// See https://aka.ms/new-console-template for more information
var myArg = System.Environment.GetCommandLineArgs();
if (myArg.Length > 1)
{


    var m = Convert.ToInt32(myArg[1]);

    var dir1 = DateTime.Now.Year.ToString();
    dir1 = String.Format("{0}{1:D2}", dir1, m);
    Console.WriteLine(dir1);
    try
    {
        Directory.Delete("E:\\weixin\\FaceImage\\" + dir1, true);
    }
    catch (Exception)
    {


    }
    Parallel.For(1, 32, i =>
    {
        //打印平方
        var dir1 = DateTime.Now.ToString("yy");
        dir1 = String.Format("{0}{1:D2}{2:D2}", dir1, m, i);
        try
        {
            Console.WriteLine(dir1);
            Directory.Delete("E:\\weixin\\FaceImage\\" + dir1, true);
        }
        catch (Exception)
        {


        }
    }
   );

    

}